package net.aiion.weave.impl.xml;

import java.io.OutputStream;
import java.util.Collection;

import net.aiion.weave.spi.xml.XmlSink;
import net.aiion.weave.spi.xml.XmlSinkFactory;
import net.aiion.weave.spi.xml.events.XmlEvent;

public class XmlSinkFactoryImpl extends XmlSinkFactory
{
    public XmlSinkFactoryImpl() {
    }

    @Override
    public XmlSink createWriter(final OutputStream aOutputStream) {
        return new XmlOutputStreamWriterSinkImpl(aOutputStream);
    }

    @Override
    public XmlSink createWriter(final Collection<XmlEvent> aTarget) {
        return new XmlCollectionWriterSinkImpl(aTarget);
    }
}
